package me.xiaoyan.ehr.po;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Account extends BaseEntity implements Serializable {

    @TableField("id")
    private Integer id;
    // 仅仅是关联数据 而不是表字段
    @TableField(exist = false)
    private Employee employee;
    @TableField("account")
    private String account;
    @TableField("password")
    private String password;
    @TableField("role_id")
    private Role role;
    @TableField("salt")
    private String salt;

}
